package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap27 extends OSMap
	{
		public function OSMap27()
		{
			super();

			var ground:OSGround = new OSGround(0, 700, 20, 380, 0, false);
			ground.setNoErosionDown([18]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]);
			ground.setNoErosionRight([15, 16, 17, 18]);
			ground.erode();
			add(ground);

			add(new OSBridge(20, 720, 10, 5, false));

			ground = new OSGround(20, 1000, 140, 80, 0, false);
			ground.setNoErosionDown([21, 22, 23, 24, 25, 26, 27]);
			ground.setNoErosionLeft([0, 7, 14, 21]);
			ground.setNoErosionRight([6, 13, 20, 27]);
			ground.erode();
			add(ground);

			ground = new OSGround(160, 960, 20, 20, 0, false);
			ground.setNoErosionDown([0]);
			ground.setNoErosionRight([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(160, 980, 260, 100, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
			ground.setNoErosionDown([52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64]);
			ground.setNoErosionLeft([0, 13, 26, 39, 52]);
			ground.setNoErosionRight([12, 25, 38, 51, 64]);
			ground.erode();
			add(ground);

			add(new OSFireGround(180, 960));

			ground = new OSGround(380, 960, 40, 20, 0, false);
			ground.setNoErosionDown([0, 1]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([1]);
			ground.erode();
			add(ground);

			ground = new OSGround(420, 700, 20, 380, 0, false);
			ground.setNoErosionDown([18]);
			ground.setNoErosionLeft([13, 14, 15, 16, 17, 18]);
			ground.setNoErosionRight([1]);
			ground.erode();
			add(ground);

			ground = new OSGround(420, 660, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(580, 600, 80, 20, 0, false);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([3]);
			ground.erode();
			add(ground);

			ground = new OSGround(640, 540, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(800, 480, 160, 600, 0, false);
			ground.setNoErosionDown([232, 233, 234, 235, 236, 237, 238, 239]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127, 135, 143, 151, 159, 167, 175, 183, 191, 199, 207, 215, 223, 231, 239]);
			ground.erode();
			add(ground);

		}
	}
}
